#ifndef PAYWIDGET_H
#define PAYWIDGET_H

#include <QWidget>
#include <QSqlTableModel>

namespace Ui {
class PayWidget;
}

class PayWidget : public QWidget
{
    Q_OBJECT

public:
    explicit PayWidget(QWidget *parent = 0);
    ~PayWidget();

private slots:
    void on_btn_pay_clicked();

    void on_cb_type_currentIndexChanged(int index);

    void on_cb_user_currentIndexChanged(int index);

private:
    Ui::PayWidget *ui;
    QSqlTableModel *model;
    void initWindow();
    void initTable();
};

#endif // PAYWIDGET_H
